package com.yuke.cloud.service.wmc.dao;

import com.yuke.cloud.common.core.mybatis.MyMapper;
import com.yuke.cloud.service.api.wmc.dto.WarehouseInfoDto;
import com.yuke.cloud.service.wmc.dto.WmsWarehouseDto;
import com.yuke.cloud.service.wmc.entity.WmsWarehouse;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface WmsWarehouseMapper extends MyMapper<WmsWarehouse> {
    void bookgoods(@Param("wareshouseid") Long wareshouseid,@Param("specid") Long specId,@Param("number") Integer number);

    List<Map> finditall1();
    List<Map> finditall12();

    void beathdelete(@Param("list") List<Long> ids);

    List<Map> findaddress(@Param("list") List<WmsWarehouse> wmsWarehouses);

    List<Map> warehouseifnull(@Param("list") List<Long> ids);

    List<Map> findByPostion(@Param("latitude") Double latitude, @Param("longitude") Double longitude, @Param("maxDistance") Long maxDistance);

    Map getaddressbyregionid(@Param("regionId") Long regionId);

    Map getwarehouseaddressbyshopid(@Param("shopid") Long shopId);

    List<WmsWarehouse> finfbyids(@Param("list") List<Long> list);

    void updatestorage(@Param("wmsWarehouse")WmsWarehouse list1);

    List<Map> findtransferspec(@Param("specId")Long specId);

    void updateFactoryStorage(@Param("specId") Long specId, @Param("number") Integer number);

    Map getWarehouseAddress(@Param("warehouseId") Long warehouseId);

    List<WarehouseInfoDto> getWarehouseInfo(@Param("warehouseIds") List<Long> warehouseIds);

    List<WmsWarehouseDto> getWarehouseInfoList(@Param("wmsWarehouse") WmsWarehouse wmsWarehouse);
}